package com.xbongbong.paas.pojo.vo;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.domain.entity.PaasFormEntity;
import com.xbongbong.paas.domain.entity.ext.PaasFormDataEntityExt;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import com.xbongbong.pro.form.pojo.TopPermissionsPoJo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: wufeng
 * @date: 2018/9/6 14:48
 * @desrcption: 数据详情
 */
@Getter
@Setter
@ToString
public class FormDataGetVO extends BaseVO {

    private static final long serialVersionUID = 5409036520329322221L;

    /**
     * 数据列表
     */
    private PaasFormDataEntityExt formList;
    /**
     * 数据详情
     */
    private JSONObject data;
    /**
     * 源数据
     */
    private JSONObject sourceData;
    /**
     * 标题列表
     */
    private List<FieldAttrEntity> headList;
    /**
     * 表单详情页上部按钮操作相关权限
     * 如编辑(update)、打印(print)、删除(delete)、彻底删除(deleteComplete)
     */
    private List<TopPermissionsPoJo> topPermissions;
    /**
     * 移动端详情页底部操作按钮
     * 如提醒、跟进记录
     */
    private List<TopPermissionsPoJo> bottomOperation;
    /**
     * saas特殊需要返回的字段合集
     */
    private JSONObject saasObj;

    /**
     * 表单实体
     */
    private PaasFormEntity paasFormEntity;

    private JSONArray amountDetail;

    /**
     * 经销商标识
     */
    private Integer distributorMark;

    public FormDataGetVO(){
        topPermissions = new ArrayList<>();
    }
}
